﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C21 RID: 3105
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MuseumRandomEventSelectScRsp : IMessage<MuseumRandomEventSelectScRsp>, IMessage, IEquatable<MuseumRandomEventSelectScRsp>, IDeepCloneable<MuseumRandomEventSelectScRsp>, IBufferMessage
	{
		// Token: 0x17002727 RID: 10023
		// (get) Token: 0x06008ADE RID: 35550 RVA: 0x001719DD File Offset: 0x0016FBDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MuseumRandomEventSelectScRsp> Parser
		{
			get
			{
				return MuseumRandomEventSelectScRsp._parser;
			}
		}

		// Token: 0x17002728 RID: 10024
		// (get) Token: 0x06008ADF RID: 35551 RVA: 0x001719E4 File Offset: 0x0016FBE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MuseumRandomEventSelectScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002729 RID: 10025
		// (get) Token: 0x06008AE0 RID: 35552 RVA: 0x001719F6 File Offset: 0x0016FBF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MuseumRandomEventSelectScRsp.Descriptor;
			}
		}

		// Token: 0x06008AE1 RID: 35553 RVA: 0x001719FD File Offset: 0x0016FBFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventSelectScRsp()
		{
		}

		// Token: 0x06008AE2 RID: 35554 RVA: 0x00171A05 File Offset: 0x0016FC05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventSelectScRsp(MuseumRandomEventSelectScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.eventId_ = other.eventId_;
			this.dDCGDKHHPAK_ = other.dDCGDKHHPAK_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008AE3 RID: 35555 RVA: 0x00171A42 File Offset: 0x0016FC42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventSelectScRsp Clone()
		{
			return new MuseumRandomEventSelectScRsp(this);
		}

		// Token: 0x1700272A RID: 10026
		// (get) Token: 0x06008AE4 RID: 35556 RVA: 0x00171A4A File Offset: 0x0016FC4A
		// (set) Token: 0x06008AE5 RID: 35557 RVA: 0x00171A52 File Offset: 0x0016FC52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700272B RID: 10027
		// (get) Token: 0x06008AE6 RID: 35558 RVA: 0x00171A5B File Offset: 0x0016FC5B
		// (set) Token: 0x06008AE7 RID: 35559 RVA: 0x00171A63 File Offset: 0x0016FC63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x1700272C RID: 10028
		// (get) Token: 0x06008AE8 RID: 35560 RVA: 0x00171A6C File Offset: 0x0016FC6C
		// (set) Token: 0x06008AE9 RID: 35561 RVA: 0x00171A74 File Offset: 0x0016FC74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DDCGDKHHPAK
		{
			get
			{
				return this.dDCGDKHHPAK_;
			}
			set
			{
				this.dDCGDKHHPAK_ = value;
			}
		}

		// Token: 0x06008AEA RID: 35562 RVA: 0x00171A7D File Offset: 0x0016FC7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MuseumRandomEventSelectScRsp);
		}

		// Token: 0x06008AEB RID: 35563 RVA: 0x00171A8C File Offset: 0x0016FC8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MuseumRandomEventSelectScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.EventId == other.EventId && this.DDCGDKHHPAK == other.DDCGDKHHPAK && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008AEC RID: 35564 RVA: 0x00171AE8 File Offset: 0x0016FCE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this.DDCGDKHHPAK != 0U)
			{
				num ^= this.DDCGDKHHPAK.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008AED RID: 35565 RVA: 0x00171B59 File Offset: 0x0016FD59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008AEE RID: 35566 RVA: 0x00171B61 File Offset: 0x0016FD61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008AEF RID: 35567 RVA: 0x00171B6C File Offset: 0x0016FD6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.DDCGDKHHPAK != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.DDCGDKHHPAK);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.EventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008AF0 RID: 35568 RVA: 0x00171BE4 File Offset: 0x0016FDE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this.DDCGDKHHPAK != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DDCGDKHHPAK);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008AF1 RID: 35569 RVA: 0x00171C54 File Offset: 0x0016FE54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MuseumRandomEventSelectScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			if (other.DDCGDKHHPAK != 0U)
			{
				this.DDCGDKHHPAK = other.DDCGDKHHPAK;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008AF2 RID: 35570 RVA: 0x00171CB8 File Offset: 0x0016FEB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008AF3 RID: 35571 RVA: 0x00171CC4 File Offset: 0x0016FEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 104U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.EventId = input.ReadUInt32();
						}
					}
					else
					{
						this.DDCGDKHHPAK = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003513 RID: 13587
		private static readonly MessageParser<MuseumRandomEventSelectScRsp> _parser = new MessageParser<MuseumRandomEventSelectScRsp>(() => new MuseumRandomEventSelectScRsp());

		// Token: 0x04003514 RID: 13588
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003515 RID: 13589
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04003516 RID: 13590
		private uint retcode_;

		// Token: 0x04003517 RID: 13591
		public const int EventIdFieldNumber = 15;

		// Token: 0x04003518 RID: 13592
		private uint eventId_;

		// Token: 0x04003519 RID: 13593
		public const int DDCGDKHHPAKFieldNumber = 13;

		// Token: 0x0400351A RID: 13594
		private uint dDCGDKHHPAK_;
	}
}
